package com.ryder.petmatediarybackend.module.shop.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 描述：创建店铺商品合集DTO
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0
 * 更新日期: 2025-10-31
 */
@Data
@Schema(description = "创建店铺商品合集请求DTO")
public class CreateProductCollectionDTO {

    @NotBlank(message = "商品名称不能为空")
    @Schema(description = "商品名称", example = "猫粮礼包", required = true)
    private String productName;

    @NotNull(message = "商品类型不能为空")
    @Schema(description = "商品类型：1=食品 2=用品 3=玩具 4=服务 5=其他", example = "1", required = true)
    private Integer productType;

    @NotNull(message = "价格不能为空")
    @Schema(description = "价格（仅展示）", example = "299.00", required = true)
    private Double price;

    @NotNull(message = "商品图片不能为空")
    @Schema(description = "商品图片URL列表（JSON数组，数量≤50）", required = true)
    private List<String> images;

    @Schema(description = "商品描述", example = "优质猫粮，营养均衡")
    private String description;
}

